﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BLL;

namespace Education.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 轮播
        /// </summary>
        /// <returns></returns>
        public ActionResult Showcarouse()
        {
            Carousel_轮播_BLL bll = new Carousel_轮播_BLL();   
            return Json(bll.ShowCarouse(),JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 向轮播老师咨询
        /// </summary>
        /// <returns></returns>
        public ActionResult Showconsult()
        {
            Consult_向老师咨询_BLL bll = new Consult_向老师咨询_BLL();
            return Json(bll.ShowConsult(),JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 静止的老师信息
        /// </summary>
        /// <returns></returns>
        public ActionResult Showteacher()
        {
            Consult_向老师咨询_BLL bll = new Consult_向老师咨询_BLL();
            return Json(bll.ShowTeacher(),JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 显示高中
        /// </summary>
        /// <returns></returns>
        public ActionResult Showgao()
        {
            Course_课程_BLL bll = new Course_课程_BLL();
            return Json(bll.ShowGao(),JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 显示初中
        /// </summary>
        /// <returns></returns>
        public ActionResult Showchu()
        {
            Course_课程_BLL bll = new Course_课程_BLL();
            return Json(bll.ShowChu(),JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// 显示小学
        /// </summary>
        /// <returns></returns>
        public ActionResult Showxiao()
        {
            Course_课程_BLL bll = new Course_课程_BLL();
            return Json(bll.ShowXiao(),JsonRequestBehavior.AllowGet);
        }
    }
}
